//
//  DetailCollectionCell.m
//  LOL_JewelBox
//
//  Created by dllo on 15/4/23.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "DetailCollectionCell.h"

@implementation DetailCollectionCell

- (void)dealloc
{
    [_detailName release];
    [_detailPng release];
    [super dealloc];
}


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        //创建一个ImageView
        self.detailPng = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 60, 60)];
        [self.contentView addSubview:self.detailPng];
        [_detailPng release];
        
        
        // 创建一个Label
        self.detailName = [[UILabel alloc] initWithFrame:CGRectMake(0, 60, 60, 14)];
        [self.contentView addSubview:self.detailName];
        self.detailName.textAlignment = NSTextAlignmentCenter;
        self.detailName.font = [UIFont systemFontOfSize:14];
        [_detailName release];
        
    }
    return self;
}



@end
